
// 点击iqc检测
function check() {
    var iqcDetectionJson = layui.table.checkStatus('testReload').data;
    var receiptKey = '';
    var receiptLineNumber = '';
    if (iqcDetectionJson == '' || iqcDetectionJson.length != 1) {
        layer.alert("请选择一个");
        location.href = 'javascript:;';
    } else {
        for (var i = 0; i < iqcDetectionJson.length; i++) {
            receiptKey = iqcDetectionJson[i].receiptKey;
            sku = iqcDetectionJson[i].sku;
        }
        location.href = '/3nod_web/iqcCheckItemDetails/toIqcCheckDetails?receiptKey=' + receiptKey + "&sku=" + sku;
    }
}

// 查看承认书
function acknowledgement() {
    var iqcDetectionJson = layui.table.checkStatus('testReload').data;
    var sku = '';
    if (iqcDetectionJson == '' || iqcDetectionJson.length != 1) {
        layer.alert("请选择一个");
        location.href = 'javascript:;';
    } else {
        for (var i = 0; i < iqcDetectionJson.length; i++) {
            sku = iqcDetectionJson[i].sku;
        }
        location.href = '/3nod_web/acknowledgment/showAcknowledgment?sku=' + sku;
    }
}
